﻿namespace NMortgage.UI.Tests
{
    using System;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    using NMortgage.UI.Model;
    using NMortgage.UI.ViewModels;

    /// <summary>
    ///This is a test class for ARateViewModelTest and is intended
    ///to contain all ARateViewModelTest Unit Tests
    ///</summary>
    [TestClass]
    public class ARateViewModelTest
    {
        #region Fields

        private TestContext testContextInstance;

        #endregion Fields

        #region Properties

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #endregion Properties

        #region Methods

        internal virtual ARateViewModel CreateARateViewModel()
        {
            ARateViewModel target = new FixedRateViewModel();
            IDistribution r = new FixedRate();
            target.Rate = r;

            return target;
        }

        internal virtual IDistribution CreateFixedRate()
        {
            return new FixedRate();
        }

        #endregion Methods

        #region Other

        //
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //

        #endregion Other
    }
}